{}["SkillBonusForFail"] = 8
{}["SkillBonusForSuccess"] = 7
{}["ThresholdForSlowGain"] = 10
{}["ThresholdForHalfGain"] = 9
GetPrimitiveParameter(0)
myvar_1 = CreateObjectGUID()
myvar_2 = GetConstantsTableByGuid(myvar_1, 4096)
myvar_3 = GetTemp(0)
myvar_4 = GetPrimitiveParameter(2)
	if (myvar_3 ~= 0) then 
myvar_3 = myvar_3

end
	if (myvar_2[{}["ThresholdForSlowGain"]] <= myvar_4) then
	local myvar_5 = 1
else
		if (myvar_2[{}["ThresholdForHalfGain"]] <= myvar_4) then
		myvar_5 = myvar_5 * 0.5
	end
end
WitchGlobalScripts["RoundUp"](WitchGlobalScripts, myvar_5)
SetTemp()
local myvar_7 = True
SetScriptReturnValue(myvar_7)
